package com.ssm.zhihu_ssm.entity;

import javax.persistence.*;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import org.springframework.data.annotation.CreatedDate;

import java.util.Date;

@Data
public class Answer {

    private Integer id;//回答id

    private String content;//回答内容

    private int good_num;//点赞数

    private int bad_num;//点踩数

    private int comment_num;//评论数

    private int collect;//？


    private String answer_img;//图片路径

    private int answer_state;//图片状态

    @CreatedDate
    @JsonFormat(pattern="yyyy-MM-dd hh:mm:ss")
    private Date time;//回答时间




}